package com.ktgj.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 评论对象 travel_comment
 * 
 * @author ruoyi
 * @date 2021-11-12
 */
public class TravelComment implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 详情id */
    @Excel(name = "详情id")
    private Long commentId;

    /** 旅游团id */
    @Excel(name = "详情id")
    private Long groupId;

    /** 旅游团号id */
    @Excel(name = "旅游团号id")
    private Long numberId;

    /** 旅游团评论父id */
    @Excel(name = "旅游团评论父id")
    private Long commentReplyId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 头像 */
    @Excel(name = "头像")
    private String faceurl;

    /** 评论消息 */
    @Excel(name = "评论消息")
    private String commentContent;

    /** 评分 */
    @Excel(name = "评分")
    private Long commentScore;

    /** 满意度 */
    @Excel(name = "满意度")
    private String commentWith;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 与当前时间相差的毫秒数
     * */
    private Long timeNum;

    public Long getTimeNum() {
        return timeNum;
    }

    public void setTimeNum(Long timeNum) {
        this.timeNum = timeNum;
    }

    private List<TravelCommentPicture> travelCommentPictures;

    private List<TravelCommentReply> travelCommentReplyList;

    public List<TravelCommentPicture> getTravelCommentPictures() {
        return travelCommentPictures;
    }

    public void setTravelCommentPictures(List<TravelCommentPicture> travelCommentPictures) {
        this.travelCommentPictures = travelCommentPictures;
    }

    public List<TravelCommentReply> getTravelCommentReplyList() {
        return travelCommentReplyList;
    }

    public void setTravelCommentReplyList(List<TravelCommentReply> travelCommentReplyList) {
        this.travelCommentReplyList = travelCommentReplyList;
    }

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public void setNumberId(Long numberId)
    {
        this.numberId = numberId;
    }

    public Long getNumberId() 
    {
        return numberId;
    }
    public void setCommentReplyId(Long commentReplyId) 
    {
        this.commentReplyId = commentReplyId;
    }

    public Long getCommentReplyId() 
    {
        return commentReplyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setFaceurl(String faceurl) 
    {
        this.faceurl = faceurl;
    }

    public String getFaceurl() 
    {
        return faceurl;
    }
    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setCommentScore(Long commentScore) 
    {
        this.commentScore = commentScore;
    }

    public Long getCommentScore() 
    {
        return commentScore;
    }

    public String getCommentWith() {
        return commentWith;
    }

    public void setCommentWith(String commentWith) {
        this.commentWith = commentWith;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("numberId", getNumberId())
            .append("commentReplyId", getCommentReplyId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("faceurl", getFaceurl())
            .append("commentContent", getCommentContent())
            .append("commentScore", getCommentScore())
            .append("commentWith", getCommentWith())
            .append("createTime", getCreateTime())
            .toString();
    }
}
